import java.sql.SQLOutput;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28463
 * Date: 2022—06—01
 * Time: 14:48
 */
class MyArray {
    public Object[] array = new Object[10];

    public Object getPos(int pos) {
        return array[pos];
    }
    public void setVal(int pos,Object val) {
        this.array[pos] = val;
    }
}
public class Test02 {
    public static void main(String[] args) {
        MyArray myArray = new MyArray();
        myArray.setVal(0,20);
        myArray.setVal(1,"xawl");

        String s = (String) myArray.getPos(1);
        System.out.println(s);
    }
}
